package com.smart4j.framework;

import com.smart4j.framework.helper.BeanHelper;
import com.smart4j.framework.helper.ClassHelper;
import com.smart4j.framework.helper.ControllerHelper;
import com.smart4j.framework.helper.IocHelper;
import com.smart4j.framework.util.ClassUtil;

/**
 * 加载相应的Helper类
 * 当我们在第一次访问类时，就会加载其static块，这里只是为了让加载更加集中，所以才写了HelperLoad类
 * @author 段誉
 * @create 2019-04-01 17:07
 */
public final class HelperLoad {
  public static void init() {
    Class<?>[] classList = {
            ClassHelper.class,
            BeanHelper.class,
            IocHelper.class,
            ControllerHelper.class
    };
    for (Class<?> cls: classList) {
      ClassUtil.loadClass(cls.getName(), false);
    }
  }
}
